﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DAL
{
    public class Transaction
    {
        #region Variables
        /// <summary>
        /// User Registration Variables
        /// </summary>
        private int _TransactionID;
        private String _Created;
        private String _Updated;
        private String _AccountNumberTo;
        private String _AccountNumber;
        private int _TransactionCategoriesID;
        private String _DateTrans;
        private Double _AmountTransaction;
        private Double _Balance;
        private String _Currency;
        private int _UserID;
        private String _Status;
        private String _Acction;
        private String _ErrorMessage;
        private String _Descriptions;
        #endregion

        public Transaction()
        {
        }

        /// <summary>
        /// Gets or sets the <b>_TransactionID</b> attribute value.
        /// </summary>
        /// <value>The <b>_CardID</b> attribute value.</value>
        public int TransactionID
        {
            get
            {
                return _TransactionID;
                     
            }
            set
            {
                _TransactionID = value;
            }
        }
        /// <summary>
        /// Gets or sets the <b>_Created</b> attribute value.
        /// </summary>
        /// <value>The <b>_Created</b> attribute value.</value>
        public String Created
        {
            get
            {
                return String.Format("{0:d/M/yyyy HH:mm:ss}", _Created);

            }
            set
            {
                _Created = String.Format("{0:d/M/yyyy HH:mm:ss}", value);
            }
        }
        /// <summary>
        /// Gets or sets the <b>_Updated</b> attribute value.
        /// </summary>
        /// <value>The <b>_Updated</b> attribute value.</value>
        public String Updated
        {
            get
            {
                return String.Format("{0:d/M/yyyy HH:mm:ss}", _Updated);

            }
            set
            {
                _Updated = String.Format("{0:d/M/yyyy HH:mm:ss}", value);
            }
        }
        /// <summary>
        /// Gets or sets the <b>_AccountNumberTo</b> attribute value.
        /// </summary>
        /// <value>The <b>_AccountNumberTo</b> attribute value.</value>
        public String AccountNumberTo
        {
            get
            {

                return _AccountNumberTo ;

            }
            set
            {
                _AccountNumberTo = value;
            }
        }
        /// <summary>
        /// Gets or sets the <b>_AccountNumber</b> attribute value.
        /// </summary>
        /// <value>The <b>_AccountNumber</b> attribute value.</value>
        public String AccountNumber
        {
            get
            {
                return _AccountNumber;

            }
            set
            {
                _AccountNumber = value;
            }
        }
        /// <summary>
        /// Gets or sets the <b>_AmountTransaction</b> attribute value.
        /// </summary>
        /// <value>The <b>_AmountTransaction</b> attribute value.</value>
        public Double AmountTransaction
        {
            get
            {
                return _AmountTransaction;

            }
            set
            {
                _AmountTransaction = value;
            }
        }
        /// <summary>
        /// Gets or sets the <b>_Acction</b> attribute value.
        /// </summary>
        /// <value>The <b>_Acction</b> attribute value.</value>
        public String Acction
        {
            get
            {
                return _Acction;

            }
            set
            {
                _Acction = value;
            }
        }
        /// <summary>
        /// Gets or sets the <b>_Balance</b> attribute value.
        /// </summary>
        /// <value>The <b>_Balance</b> attribute value.</value>
        public Double Balance
        {
            get
            {   
                return _Balance;

            }
            set
            {
                _Balance = value;
            }
        }
        /// <summary>
        /// Gets or sets the <b>_Currency</b> attribute value.
        /// </summary>
        /// <value>The <b>_Currency</b> attribute value.</value>
        public String Currency
        {
            get
            {
                return _Currency;

            }
            set
            {
                _Currency = value;
            }
        }
        /// <summary>
        /// Gets or sets the <b>_ErrorMessage</b> attribute value.
        /// </summary>
        /// <value>The <b>_ErrorMessage</b> attribute value.</value>
        public String ErrorMessage
        {
            get
            {
                return _ErrorMessage;

            }
            set
            {
                _ErrorMessage = value;
            }
        }
        
       
        /// <summary>
        /// Gets or sets the <b>_TransactionCategoriesID</b> attribute value.
        /// </summary>
        /// <value>The <b>_TransactionCategoriesID</b> attribute value.</value>
        public int TransactionCategoriesID
        {
            get
            {
                return _TransactionCategoriesID;

            }
            set
            {
                _TransactionCategoriesID = value;
            }
        }

        /// <summary>
        /// Gets or sets the <b>_UserID</b> attribute value.
        /// </summary>
        /// <value>The <b>_UserID</b> attribute value.</value>
        public int UserID
        {
            get
            {
                return _UserID;

            }
            set
            {
                _UserID = value;
            }
        }
        /// <summary>
        /// Gets or sets the <b>_Status</b> attribute value.
        /// </summary>
        /// <value>The <b>_Status</b> attribute value.</value>
        public String Status
        {
            get
            {
                return _Status;

            }
            set
            {
                _Status = value;
            }
        }
        /// <summary>
        /// Gets or sets the <b>_DateTrans</b> attribute value.
        /// </summary>
        /// <value>The <b>_DateTrans</b> attribute value.</value>
        public String DateTrans
        {
            get
            {
                return _DateTrans;

            }
            set
            {
                _DateTrans = value;
            }
        }
        /// <summary>
        /// Gets or sets the <b>_Descriptions</b> attribute value.
        /// </summary>
        /// <value>The <b>_Descriptions</b> attribute value.</value>
        public String Descriptions
        {
            get
            {
                return _Descriptions;

            }
            set
            {
                _Descriptions = value;
            }
        }
    }
}
